<?
$sub_menu = "230460";
include_once("./_common.php");

check_demo();

auth_check($auth[$sub_menu], "d");

check_token();

for ($i=0; $i<count($chk); $i++) 
{
    // 실제 번호를 넘김
    $k = $_POST['chk'][$i];

    $ml_id = $_POST[ml_id][$k]; 

    $row = sql_fetch("select * from $mw_cash[membership_log_table] where ml_id = '$ml_id'");
    if (!$row)
        alert("자료가 없습니다.");

    mw_cash_delete($row[cl_id]);
    
    sql_query("delete from $mw_cash[membership_log_table] where ml_id = '$ml_id'");

}

goto_url("mw.membership.log.php?$qstr");
?>
